﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DTOs;
using DataAccess;
namespace WindowsFormsApplication
{
    public partial class StudentReg : Form
    {
        public StudentReg()
        {
            InitializeComponent();
        }

        private void btnAddRec_Click(object sender, EventArgs e)
        {
            StudentInfo student = new StudentInfo();
            student.RollNo = Int32.Parse(txtRoll.Text);
            student.Name = txtName.Text;
            student.Age = Int32.Parse(txtAge.Text);

            StudentDB.AddStudent(student);
            
           
        }
    }
}
